调整签到触发时间为北京时间每天 08:00-10:00 随机 - #23
Closed
xfxx2022 wants to merge 4 commits into
Closed
Conversation
- 删除 scheduled 触发的随机延迟步骤(原 DELAY=$((RANDOM%121)) 平均空耗 60 分钟/次) - 签到改为北京时间 08:00 准时执行,单次由 ~60+ 分钟降至约 5 分钟 - timeout-minutes 由 150 下调至 30,防止异常卡死持续占用额度
Owner
|
脚本是用旧版本直接领取概念版VIP,会跟新版本领畅听升概念冲突,如果早上8点签到,在8点前领了一天畅听,脚本就无法领概念。所以我感觉还是凌晨签到好一些。 |
- 签到.yml cron '0 0 * * *'(北京08:00)→ '10 17 * * *'(北京01:10) - 背景:PR#23 将触发时间改为 08:00 意图做随机执行,但其随机延迟/超时部分已被 c2c3e69 回退为固定 08:00 整点;且当初未同步 README 造成文档矛盾 - 脚本与用户在 APP 手动领取共用当日青春版VIP名额(先到先得,main.js 已处理 130012/30002),凌晨跑可抢在手动操作前领取,避免空跑失败 - README 第57行现仍为 01:10,本次修正后 cron 与文档一致,无需改动 README 文字
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
将每日签到的触发时间从固定
17:10 UTC(北京时间次日 01:10)调整为北京时间每天 08:00–10:00 之间的随机时间。
改动点(仅
.github/workflows/签到.yml)on.schedule.cron:10 17 * * *→0 0 * * *schedule触发时生效(手动
Run workflow不延迟,方便随时测试排障):DELAY=$(( RANDOM % 121 ))后sleep ${DELAY}mtimeout-minutes:30→150,覆盖最长 2 小时随机延迟 + 签到耗时效果